package com.sso.oauth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Derry Luo on 2019/5/10.
 */
@Component
@ConfigurationProperties(prefix = "sso")
@Data
public class SSOConfigProperties {

    // Azure AD指定的登录地址
    private String authority;
    // 目录ID， Azure AD > APP registrations > your app > Overview > tenant_id
    private String tenant;
    // Azure AD > APP registrations > your app > Overview > ApplicationID
    private String clientId;
    // Azure AD > APP registrations > your app > Certificates & Secret > Clients Secret 创建时得到的secret
    private String secretKey;
    // 在Azure AD的registration app中配置的reply_path
    private String replyPath;
    // Microsoft Graph 获取用户信息的地址
    private String graphUrl;
    // 退出登录的回调地址
    private String logoutPath;

}
